package exception;

public class ThrowDemo {
    public static void main(String[] args) {
        Studen studen=new Studen();
        try {
            studen.setAge(101);
        } catch (Exception e) {

            System.out.println("111");
        }
        System.out.println("年龄不合法");
    }
}
